import 'package:df/page/router/router.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:df/generated/l10n.dart';

class RouterErrorPage extends StatelessWidget {
  const RouterErrorPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(S.current.routeError)),
      body: Center(
        child: ElevatedButton(
            onPressed: () {
              context.go(ROUTER_WEB);
            },
            child: Text(S.current.returnHomepage)),
      ),
    );
  }
}
